summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-02-17 03:11:47 +0100
committert895 <clombardo169@gmail.com>2024-02-17 03:11:47 +0100
commitac33847b3005dab85bc8e5792188713b973c4b1e (patch)
treecd0c0816d125544e0a3605e7720f622611abe6c5
parenthid_core: Use dedicated "port" for android's input overlay (diff)
downloadyuzu-ac33847b3005dab85bc8e5792188713b973c4b1e.tar
yuzu-ac33847b3005dab85bc8e5792188713b973c4b1e.tar.gz
yuzu-ac33847b3005dab85bc8e5792188713b973c4b1e.tar.bz2
yuzu-ac33847b3005dab85bc8e5792188713b973c4b1e.tar.lz
yuzu-ac33847b3005dab85bc8e5792188713b973c4b1e.tar.xz
yuzu-ac33847b3005dab85bc8e5792188713b973c4b1e.tar.zst
yuzu-ac33847b3005dab85bc8e5792188713b973c4b1e.zip
-rw-r--r--src/hid_core/frontend/emulated_controller.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hid_core/frontend/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cpp
index b4b6fa7c8..8b5d0eec6 100644
--- a/src/hid_core/frontend/emulated_controller.cpp
+++ b/src/hid_core/frontend/emulated_controller.cpp
@@ -581,6 +581,9 @@ void EmulatedController::DisableConfiguration() {
// Get Joycon colors before turning on the controller
for (const auto& color_device : color_devices) {
+ if (color_device == nullptr) {
+ continue;
+ }
color_device->ForceUpdate();
}